package crud.client.dialog;

import java.util.List;

import com.smartgwt.client.widgets.Window;

import crud.client.NormasysCRUD;
import crud.client.data.Colonne;
import crud.client.data.Table;

public abstract class GenericTableCRUD extends Window
{
	protected final Table table; 
	protected final List<Colonne> colonneList;
	
	public GenericTableCRUD(final Table table, final List<Colonne> colonneList)
	{
		this.table = table;
		this.colonneList = colonneList;
	}
	
	public void initialize(final NormasysCRUD parentNormasysCRUD, int left, int top)
	{
		setCanDragReposition(true);
		setCanDragResize(true);
		setLeft(left);
		setTop(top);
		setTitle(table.getLibelle());
		this.draw();
	}
}
